package com.greenhouse.protocol.bean;

import com.greenhouse.protocol.common.enums.ConfirmStatus;

import io.netty.channel.Channel;
import io.netty.handler.codec.mqtt.MqttQoS;
import lombok.Builder;
import lombok.Data;

/**
 * mqtt 消息
 *
 * @author lxr
 * @create 2018-01-17 19:54
 **/
@Builder
@Data
public class SendMqttMessage {

	private int messageId;

	private Channel channel;

	private volatile ConfirmStatus confirmStatus;

	private long time;

	private byte[] byteBuf;

	private boolean isRetain;

	private MqttQoS qos;

	private String topic;

}
